//
//  GHOrderModel.m
//  GodHorses
//
//  Created by Mac on 2017/11/20.
//  Copyright © 2017年 stoneobs@icloud.com. All rights reserved.
//

#import "GHOrderModel.h"

@implementation GHOrderModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{@"oriderID":@"id"};
}
- (NSArray<GHOrderGoodModel *> *)goodList{
    NSMutableArray * array = [NSMutableArray new];
    if (self.goods_info.count) {
        for (NSDictionary * dic in self.goods_info) {
            GHOrderGoodModel * model = [GHOrderGoodModel mj_objectWithKeyValues:dic];
            [array addObject:model];
        }
        return array;
       
    }
    return nil;
}
@end
